From: Julian Sparber Date: Tue, 13 Feb 2024 15:00:43 +0000 (+0100) Subject: status/thunderbolt: Small style cleanup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~1^2~183 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=502a5923621d8fa14ca1a1a4596cc4f52089d802;p=gnome-shell.git status/thunderbolt: Small style cleanup Part-of: --- diff --git a/js/ui/status/thunderbolt.js b/js/ui/status/thunderbolt.js index df3622393..9e33c21f5 100644 --- a/js/ui/status/thunderbolt.js +++ b/js/ui/status/thunderbolt.js @@ -265,9 +265,8 @@ class Indicator extends SystemIndicator { this._notification = null; }); this._notification.connect('activated', () => { - let app = Shell.AppSystem.get_default().lookup_app('gnome-thunderbolt-panel.desktop'); - if (app) - app.activate(); + const app = Shell.AppSystem.get_default().lookup_app('gnome-thunderbolt-panel.desktop'); + app?.activate(); }); source.showNotification(this._notification); }